package com.tjetc.hw2;

import java.io.*;

public class hw3 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("d:\\e.png"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("d:\\f.png"));
        int num;
        byte [] b = new byte[1024];
        while((num = bis.read(b)) != -1){
            bos.write(b,0,num);
        }
    }
}
